package com.sumainfor.pc.gmio.controller.MktFeign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.gmio.service.impl.market.MarketPactService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author Meng
 * @ClassName MarketPactController
 * @date 2019/11/17 14:07
 * @description: TODO
 */
@Controller
@RequestMapping("/key/marketPact")
public class MarketPactController {

    @Autowired
    MarketPactService marketPactService;

    /**
     * 根据收费标准编号查询收费标准
     * @param params
     * @return
     */
    @ResponseBody
    @GetMapping("/getChaId")
    public JsonResult getChaId(@RequestParam Map<String,Object> params){
        return marketPactService.getChaId(params);
    }
}
